\usepackage[english]{babel} % Sets the bable of the document to english
\usepackage{listings} % to insert programming code within the document. Many languages are supported and the output can be customized.
\usepackage[utf8]{inputenc}
\usepackage{graphicx} % Manage external pictures
%\usepackage{natbib} % gives additional citation options and styles
%\usepackage{pdfpages} % This package simplifies the insertion of external multi-page PDF or PS documents.
\usepackage{epstopdf}
\usepackage{float} % Frequently used for the "H" positioning in figures.
%\usepackage{fancyhdr} % change header and footer of any page of the document.
%\usepackage[Lenny]{fncychap}

\usepackage[pdfborder={0 0 0 0}]{hyperref} % Inserts url's and ref-links correct. usage: \href{URL}{text}
% Borders or no borders in the pdf document?

\usepackage[%
  font={small,bf},
  labelfont=bf,
  tableposition=top
]{caption}
\usepackage{verbatim} % improves the verbatim environment
\usepackage{rotating} % Used to rotate text to vertical position
\usepackage{framed} % Used for making boxes around figures and alike.
\usepackage{multirow} % Used for advanced tabels
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb} % it adds new symbols in to be used in math mode.
\usepackage{color} % it adds support for colored text
\usepackage{subfig}
\usepackage{wrapfig}
\usepackage{underscore}
%\usepackage[none]{hyphenat}

\bibliographystyle{ieeetran}
%\setcitestyle{authoryear}
\pagestyle{plain}
\setcounter{tocdepth}{1}

%%% CUSTOM PAPER-PRETTINESS SETTINGS
%two column float page must be 90% full
\renewcommand\dblfloatpagefraction{.90}
%two column top float can cover up to 80% of page
\renewcommand\dbltopfraction{.80}
%float page must be 90% full
\renewcommand\floatpagefraction{.90}
%top float can cover up to 80% of page
\renewcommand\topfraction{.80}
%bottom float can cover up to 80% of page
\renewcommand\bottomfraction{.80}
%at least 10% of a normal page must contain text
\renewcommand\textfraction{.1}
%separation between floats and text
\setlength\dbltextfloatsep{9pt plus 5pt minus 3pt }
%separation between two column floats and text
\setlength\textfloatsep{10pt plus 4pt minus 3pt}
%separation of the two columns
\setlength{\columnsep}{.25in}
% don't hyphenate so much - default = 200, max (never hyphenate) = 10,000
\hyphenpenalty=800



%\setlength{\headheight}{30.4pt}
\newtheorem{mydef}{Definition}
\newcommand{\citepageline}[3]{\cite{#1} (page #2 line #3)}
\newcommand{\citepage}[2]{\cite{#1} (page #2)}
\newcommand{\citeline}[2]{\cite{#1} (line #2)}


\lstset{
	language=[Visual]C++,
	keywordstyle=\bfseries\ttfamily\color[rgb]{0,0,1},
	identifierstyle=\ttfamily,
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\ttfamily\color[rgb]{0.627,0.126,0.941},
	showstringspaces=false,
	basicstyle=\small,
	numberstyle=\footnotesize,
	numbers=left,
	stepnumber=1,
	numbersep=5pt,
	tabsize=2,
	breaklines=true,
	prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
	breakatwhitespace=false,
	aboveskip={1.5\baselineskip},
	frameround=fftt,
	frame=shadowbox,
	columns=fixed,
	upquote=true,
	extendedchars=true,
	breaklines=true,
	frame=single
% backgroundcolor=\color{lbcolor},
}
